<?php
//require('plugins/mobile-detect.php');
//mobile_device_detect($iphone=true,$ipad=true,$android=true,$opera=true,$blackberry=true,$palm=true,$windows=true,$mobileredirect=false,$desktopredirect=false);
//$mobile_device_array = mobile_device_detect(true, false, true, true, true, true, true, false, false);
//$mobile_device_array['mobile_device'];
//$mobile_device_array['mobile_device'] = "mobile";

//mobile/tablet detection script
$mobdetect = new Mobile_detect;
// Any mobile device (phones or tablets).
//echo "mobile: ".$mobdetect->isMobile()."<br />";
//echo "tablet: ".$mobdetect->isTablet()."<br />";

// Pull in config file
require('config.php');
require('functions/date.functions.php');
require('functions/general.functions.php');

// FCKeditor plugin
require('plugins/fckeditor/fckeditor.php');

// Classes
function __autoload($class) {
	$paths = array('classes');

	foreach($paths as $path) {
		$filepath = 'system/' . $path . '/' . $class . '.cls.php';
		if(is_file($filepath)){
			require($filepath);
			break;
		}
	}
}

// Additional JS array
$inc_js_array = array();

// LESS Plugin
require(SYSTEM_PLUGINS.'lessphp.inc.php');

// LESS Compiler
require(SYSTEM_CONTROLLER_INC.'inc.css.compiler.php');
?>